package com.situ.mall.admin.mapper;

import com.situ.mall.admin.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author membergpf
 * @since 2023-03-18
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> selectListPage(String keyword);

    String checkPhone(String username);

    void updateByName(String username, String newPassword);

    @Select("select * from user where username =#{username}")
    List<User> selectByUsername(String username);

    void updateByUsername1(String oldusername, String username, String sex, String tel);
}
